package com.hexus.eve.actions;

import java.util.List;

import com.hexus.eve.entities.Account;
import com.hexus.eve.entities.security.User;
import com.hexus.eve.utils.CurrentUser;
import com.opensymphony.xwork2.ActionSupport;

public class Accounts extends ActionSupport{
	private static final long serialVersionUID = 1L;
	private List<Account> accounts;
	
	public String execute() {
		User user = CurrentUser.getUser();
		accounts = user.getAccounts();
		return SUCCESS;
	}
	
	public List<Account> getAccounts() {
		return accounts;
	}

	public void setAccounts(List<Account> accounts) {
		this.accounts = accounts;
	}
}
